﻿using ProTrack.Entity;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace ProTrack.IServices.Examine
{
    public interface IQcProjectDeviceServices
    {

        //查询所有数据
        public Task<IEnumerable<QcProjectDevice>> GetAllAsync();

        //根据条件查询数据
        public Task<IEnumerable<QcProjectDevice>> GetAsync(int PageIndex, int PageSize,string DeviceCode, string DeviceName);

        public Task<int> GetCountAsync(string DeviceCode, string DeviceName);

        //修改
        public Task<bool> UpdateAsync(QcProjectDevice model);

        //新增
        public Task<bool> AddAsync(QcProjectDevice model);

        public Task<bool> DeleteAsync(int[] Ids);
        public Task<bool> DeleteAsync(int Id);
    }
}
